package com.hm.cms.vo;

import java.io.Serializable;
import java.util.List;

import com.hm.common.util.CommonUtil;

import lombok.Data;

/**
 * @author shishun.wang
 * @date 2017年10月22日 上午12:13:26
 * @version 1.0
 * @describe 页面广告
 */
@Data
public class HcmsPageAdvertVo implements Serializable {

	private static final long serialVersionUID = 1L;

	private String headSlide = "";

	public HcmsPageAdvertVo headSlides(List<HcmsAdvertVo> advertVos) {
		if (CommonUtil.isEmpty(advertVos)) {
			return this;
		}
		advertVos.parallelStream().forEach(slide -> {
			this.headSlide = slide.getAdContent();
		});
		return this;
	}
}
